package com.tang.mybatis.executor.statment;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author Tang
 * @classname StatementHandler
 * @description [  ]
 * @date 2022/4/8 22:13
 */
public interface StatementHandler {

    PreparedStatement prepare(Connection connection);

    ResultSet query(PreparedStatement preparedStatement) throws SQLException;

}